package cn.kgc.springcloud.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 课工场
 * @date 2023/10/18
 * @description
 */
@RestController
@RequestMapping("sentinel")
public class SentinelClientController {


    @RequestMapping("m1")
    public String method1(){

        return "SentinelClientController  method1  ok";
    }

    @RequestMapping("m2")
    public String method2(Integer id){

        if (id<0){
            throw  new RuntimeException("参数异常");
        }
        return "SentinelClientController method2  ok";
    }


}
